﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MVCPets.Models.RoleModel>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
  Index
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  <h2>Role Management</h2>
  <table>
    <tr>
      <th></th>      
      <th>RoleName</th>
      <th>RoleValue</th>
    </tr>
    <% foreach (var item in Model)
       { %>
    <tr>
      <td><%= Html.ActionLink("Edit", "Edit", new { id=item.ID }) %> |
      <%= Html.ActionLink("Delete", "Delete", new { id=item.ID })%></td>
      <td><%= item.RoleName %></td>
      <td><%= item.RoleValue %></td>
    </tr>
    <% } %>
    <tfoot>
      <tr>
        <td colspan="3"><%= Html.ActionLink("[Create New]", "Create") %></td>
      </tr>
    </tfoot>
  </table>
</asp:Content>

